<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr = ['刘德华','张学友', '黎明', '郭富城', '蔡徐坤', 10];
        document.write(arr.join(','));
        document.write('<br>'); // 换行
        document.write(arr[4])
        document.write('<br>'); // 换行
        document.write(arr[5])
        document.write('<br>'); // 换行
        document.write(arr.length); // 数组长度
    </script>
</body>
</html>